<?php

namespace app\admin\validate;

use think\Validate;

class Login extends Validate
{
    protected $rule = [
        // 用户名 为字母和数字，下划线_及破折号-
        'user_name|账号' => 'require|alphaDash|length:3,20',
        'password|密码' => 'require|length:6,16',
        'captcha|验证码'=>'require|captcha'
    ];
}